__author__ = 'st316'

from numpy import *
from scipy.spatial import distance

A = array([728, 592, 1, 0])
B = array([1035, 437, 0, 2])
C = array([382, 0, 487, 370])
print 1 - distance.cosine(A, B)
print 1 - distance.cosine(A, C)